<?php
class User_Form_Forgetpassword extends Custom_Form
{
    public function init()
    {
        $translator = Zend_Registry::get('translate');
        
        $this->setName("forgetpassword");
        $this->setMethod('post');

        $this->addElement('text', 'user_email', 
                               array('label' => $translator->_('Email Address'), 
                              'required' => 'true',
                              'filters'=> array('StringTrim'),
                              'validators' => array(array('EmailAddress'),
                                            array('Db_NoRecordExists',false,
                                            array('table'=>'viz_user','field'=>'email')))));
        

        $this->addElement('submit', 'Submit', 
                                    array('ignore' => true,
                                         'required' => false,
                                          'lable'=>$translator->_('Register'),
                                        ));

        $element = $this->getElement('Submit');
        $element->removeDecorator('label');
        $this->user_email->addErrorMessage($translator->_('ERR_SIGNUP_EMAIL'));
        
        
    }
}

?>